@extends('common.admin_template')

@section('content')
    <div class="boxWidth">
        @include('common.notice_msg')
        {{--<div class="row">--}}
            <table class="table table-hover adminTableBg">
                <thead>
                <tr>
                    <th class="col-xs-2">用户名</th>
                    <th class="col-xs-4">内容</th>
                    <th class="col-xs-3">页面</th>
                    <th class="col-xs-2">时间</th>
                    <th class="col-xs-1">操作</th>
                </tr>
                </thead>
                <tbody>
                @foreach($Comments as $item)
                    <tr>
                        <th class="col-xs-2 itemTd">{{$item->name}}</th>
                        <th class="col-xs-4 itemTd">{{$item->content}}</th>
                        <th class="col-xs-3 itemTd">{{$item->title}}</th>
                        <th class="col-xs-2 itemTd">{{$item->created_at}}</th>
                        <th class="col-xs-1 itemTd">
                            <a href="{{url('admin/comment/del',['id' => $item->id])}}"><span class="redColor" id="delInput" onclick="if(!confirm('是否确认删除？'))return false">删除</span></a>
                        </th>
                    </tr>
                @endforeach
                </tbody>
            </table>
        <div class="pull-right">
            {{$Comments->render()}}
        </div>
        {{--</div>--}}
    </div>
@stop
@section('js')
    <script>
    </script>
@stop